<template>
    <div>
        <ul>
            <li v-for="(stu, index) in studentArr" :key="index">
                {{ name }}--{{ age }}
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    name: "Student",
    data() {
        return {
            studentArr: [
                { name: "xuhu", age: 23 },
                { name: "xuyawen", age: 4 },
            ],
        };
    },
};
</script>

<style></style>
